home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Embed / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-12-16  |  2.4 KB  |  85 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.h
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef PART_H
  13. #define PART_H
  14.  
  15. // ----- Framework Includes -----
  16.  
  17. #ifndef FWPARTNG_H
  18. #include "FWPartng.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward class declaration
  23. //========================================================================================
  24.  
  25. class FW_CPresentation;
  26. class CEmbedFrame;
  27. class CEmbedProxy;
  28. class CEmbedSelection;
  29. class CEmbedContent;
  30.  
  31. //========================================================================================
  32. //    CLASS CEmbedPart
  33. //========================================================================================
  34.  
  35. class CEmbedPart : public FW_CEmbeddingPart
  36. {
  37. //----------------------------------------------------------------------------------------
  38. //    Initialization/Destruction
  39. //
  40.   public:
  41.     FW_DECLARE_AUTO(CEmbedPart)
  42.     
  43.     CEmbedPart(ODPart* odPart);
  44.     virtual void Initialize(Environment* ev, ODStorageUnit* storageUnit, FW_Boolean fromStorage);
  45.     
  46.     virtual ~CEmbedPart();
  47.         
  48. //----------------------------------------------------------------------------------------
  49. //    Inherited API
  50. //
  51.   public:
  52.     virtual FW_CFrame*             NewFrame(Environment* ev,
  53.                                     ODFrame* odFrame, 
  54.                                     FW_CPresentation* presentation,
  55.                                     FW_Boolean fromStorage);
  56.  
  57.     virtual FW_CContent*         NewPartContent(Environment* ev);
  58.  
  59.     virtual FW_Handled            DoMenu(Environment* ev, 
  60.                                     const FW_CMenuEvent& theMenuEvent);
  61.     virtual FW_Handled            DoAdjustMenus(Environment* ev, 
  62.                                     FW_CMenuBar* menuBar, 
  63.                                     FW_Boolean hasMenuFocus,
  64.                                     FW_Boolean isRoot);
  65.     virtual FW_Handled            DoAbout(Environment* ev);
  66.                                      
  67. //----------------------------------------------------------------------------------------
  68. //    New API
  69. //
  70. public:
  71.     FW_CPresentation*            GetPresentation() const
  72.                                     {return fPresentation;}
  73.     ODCommandID                    GetFacetNumberCommandID() const;
  74.     short                        GetRotation() const;
  75.                                                                 
  76. //----------------------------------------------------------------------------------------
  77. //    Data Members
  78. //
  79. private:
  80.     FW_CPresentation*    fPresentation;
  81.     CEmbedContent*        fEmbedContent;
  82. };
  83.  
  84. #endif
  85.